#{extends 'main.html' /}
#{set title:'visionnage d\'un forum' /}

#{if posts}
	
	<div class="messages">
		#{list items:posts, as:'post'}
		<div class="messageforum">
			<div class="auteurmessageforum">
				<a href="@{Application.viewProfile(post.user.id)}">${post.user.login}</a>
			</div>
			<div class="textmessageforum">
				<a href="@{Application.viewMessages(post.id)}">${post.titre}</a>
			</div>
		</div>
		#{/list}
	</div>




#{/if}